<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\IndexController;
use App\Http\Controllers\ImportController;
use App\Http\Controllers\Api\Mobile\PayController;

//负载心跳检测
Route::get('/online',  [IndexController::class, 'online']);

//入口判断是否带openid
Route::get('/',  [IndexController::class, 'index'])->middleware(['enter.openid']);
//微信支付通知
Route::any('/wxpaynotify',  [PayController::class, 'wxPayNotify']);


Route::group(['middleware' => ['base.param']], function () {
    //落地
    Route::get('/born',  [IndexController::class, 'born']);//->middleware('page_cache');
    //支付
    Route::get('/pay',  [IndexController::class, 'pay']);
    //支付落地
    Route::get('/payborn',  [IndexController::class, 'payborn']);
    //播放
    Route::get('/play',  [IndexController::class, 'play']);
    //标签视频
    Route::get('/tag-videos',  [IndexController::class, 'tagView']);

    
});


//七七扫码
Route::post('/pay/7-qrcode',  [PayController::class, 'sevenQrcode']);
Route::any('/pay/7-sm-notify',  [PayController::class, 'sevenNotify']);
Route::get('/pay/7-success',  [PayController::class, 'sevenSuccess']);

//和珅支付前端跳转
Route::get('/pay/hs-success',  [PayController::class, 'hsSuccess']);
//和珅支付回调
Route::get('/pay/hs-notify',  [PayController::class, 'hsPayNotify']);